package movies.repository;

import java.util.List;
import movies.domain.Person;

/**
 *
 * @author Hanna_Aliakseichykava
 */
public interface IPersonRepository {

    public Person savePerson(Person person);

   public Person getPersonById(final int id);

   public void deletePerson(Person person);

   public List<Person> getPersonsByName(final String name);

   public List<Person> getPersonsBySurname(final String surname);

   public List<Person> getPersonsByNameAndSurname
           (final String name, final String surname);

   public List<Person> getAllPersons();

}
